
function CreateModelIcon( mdl, campos, lookat, fov )

	local modelpnl = vgui.Create( "BModelPanel" );

	modelpnl:SetModel( mdl );

	modelpnl:SetCamPos( campos );
	modelpnl:SetLookAt( lookat );
	modelpnl:SetFOV( fov );

	modelpnl.LayoutEntity = function( self ) 
	
	end
	
	return modelpnl;

end

ScopeOn = false;

function ScopeMode( b )

	LocalPlayer():GetViewModel():SetNoDraw( b );
	ScopeOn = b;

end

function TestForOpenScreenPos()

	Msg( "IntroCameraPositions[\"" .. GetMap() .. "\"] = {\n\n" );

	local eyepos = LocalPlayer():EyePos();
	local eyeang = LocalPlayer()	:EyeAngles();
	
	Msg( "Pos = Vector( " .. eyepos.x .. ", " .. eyepos.y .. ", " .. eyepos.z .. " ), \n" );
	Msg( "Ang = Angle( " .. eyeang.pitch .. ", " .. eyeang.yaw .. ", " .. eyeang.roll .. " ), \n" );

	Msg( "\n\n};" );

end